package cn.dubnation.base.enums;

/**
 * 响应信息枚举类
 */
public enum ResponseCode {
    RESPONSE_CODE_200(200,"操作成功!"),
    RESPONSE_CODE_400(400,"参数错误!"),
    RESPONSE_CODE_400001(400001,"两次密码不一致!"),
    RESPONSE_CODE_400002(400002,"店铺已存在!"),
    RESPONSE_CODE_400003(400003,"商店座机号码格式不合法!"),
    RESPONSE_CODE_400004(400004,"商店地址不存在!"),
    RESPONSE_CODE_400005(400005,"店长手机号码不合法!"),
    RESPONSE_CODE_400006(400006,"发送邮件失败!"),
    RESPONSE_CODE_400007(400007,"该管理员没有邮箱!"),
    RESPONSE_CODE_400008(400008,"激活失败，激活码已失效!"),
    RESPONSE_CODE_400009(400009,"上架失败!"),
    RESPONSE_CODE_4000010(4000010,"该店铺驳回次数已超过3次, 请查看店铺信息!"),
    RESPONSE_CODE_4000011(4000011,"图形验证码输入错误!"),
    RESPONSE_CODE_4000012(4000012,"图片成功上传fastdfs!"),
    RESPONSE_CODE_4000013(4000013,"图片上传fastdfs失败!"),
    RESPONSE_CODE_4000014(4000014,"删除车辆类型失败!"),
    RESPONSE_CODE_500(500,"网络异常!请稍后重试!");

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}